#!/usr/bin/expect -f
set ip 192.168.115.224
set password hadoop
set timeout 10000
spawn ssh root@$ip
expect {
"*yes/no"  {send "yes\r";exp_continue}
"*password:" {send "$password\r"}
}
expect "#" 
send "cd /home/hadoop/sipua/Debug\r" 
send "./SIP-system uas.cfg\r"
expect eof
